/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.Question1.employees.Impl;

/**
 *
 * @author 208067396
 */
public class HourlyEmployee extends Employees{
    
    private double hRate;
    private double amountOfHours;

    @Override
    public double calcTax() {
        return (gethRate() * getAmountOfHours()) * 0.05;
    }

    /**
     * @return the hRate
     */
    public double gethRate() {
        return hRate;
    }

    /**
     * @param hRate the hRate to set
     */
    public void sethRate(double hRate) {
        this.hRate = hRate;
    }

    /**
     * @return the amountOfHours
     */
    public double getAmountOfHours() {
        return amountOfHours;
    }

    /**
     * @param amountOfHours the amountOfHours to set
     */
    public void setAmountOfHours(double amountOfHours) {
        this.amountOfHours = amountOfHours;
    }
    
}
